package com.manage.competition.repository;

import com.manage.competition.entity.ExaminationColumn;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Create with IDEA
 *
 * @Author: gitee.com/KamisamaXX
 * @Date: Create in 16:12 2019/4/2
 * @Description:
 */
public interface ExaminationColumnRepository extends JpaSpecificationExecutor<ExaminationColumn>, JpaRepository<ExaminationColumn,Long> {
    List<ExaminationColumn> findAllByPaperId(long id);

    ExaminationColumn findByIdAndPaperId(long id,long paperId);
}
